$OpenBSD: patch-scripts_xdg-open_in,v 1.2 2015/01/04 15:36:22 ajacoutot Exp $

Fix sed(1) usage (i.e. !GNU sed).

--- scripts/xdg-open.in.orig	Thu Oct  9 16:44:34 2014
+++ scripts/xdg-open.in	Sun Jan  4 16:32:44 2015
@@ -231,7 +231,7 @@ DEBUG 3 "$xdg_user_dir:$xdg_system_dirs"
 
 open_generic_xdg_file_mime()
 {
-    filetype=`xdg-mime query filetype "$1" | sed "s/;.*//"`
+    filetype=`xdg-mime query filetype "$1" | sed "s/[ ;].*//"`
     open_generic_xdg_mime "$1" "$filetype"
 }
 
@@ -376,7 +376,7 @@ esac
 if [ x"$BROWSER" = x"" ]; then
     BROWSER=links2:elinks:links:lynx:w3m
     if [ -n "$DISPLAY" ]; then
-        BROWSER=x-www-browser:firefox:seamonkey:mozilla:epiphany:konqueror:chromium-browser:google-chrome:$BROWSER
+        BROWSER=x-www-browser:firefox:chrome:seamonkey:mozilla:epiphany:midori:konqueror:opera:chromium-browser:google-chrome:$BROWSER
     fi
 fi
 
